package com.base.bean;

/**
 * ClientOwnerId entity. @author MyEclipse Persistence Tools
 */

public class ClientOwnerId implements java.io.Serializable {

	// Fields

	private Integer cid;
	private Integer owner;

	// Constructors

	/** default constructor */
	public ClientOwnerId() {
	}

	/** full constructor */
	public ClientOwnerId(Integer cid, Integer owner) {
		this.cid = cid;
		this.owner = owner;
	}

	// Property accessors

	public Integer getCid() {
		return this.cid;
	}

	public void setCid(Integer cid) {
		this.cid = cid;
	}

	public Integer getOwner() {
		return this.owner;
	}

	public void setOwner(Integer owner) {
		this.owner = owner;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof ClientOwnerId))
			return false;
		ClientOwnerId castOther = (ClientOwnerId) other;

		return ((this.getCid() == castOther.getCid()) || (this.getCid() != null
				&& castOther.getCid() != null && this.getCid().equals(
				castOther.getCid())))
				&& ((this.getOwner() == castOther.getOwner()) || (this
						.getOwner() != null && castOther.getOwner() != null && this
						.getOwner().equals(castOther.getOwner())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getCid() == null ? 0 : this.getCid().hashCode());
		result = 37 * result
				+ (getOwner() == null ? 0 : this.getOwner().hashCode());
		return result;
	}

}